package cn.csc.module.product.controller.admin.sku.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.math.BigInteger;

/**
* sku信息 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class SkuBaseVO {

    @ApiModelProperty(value = "SPU id", required = true)
    @NotNull(message = "SPU id不能为空")
    private BigInteger spuId;

    @ApiModelProperty(value = "sku名称")
    private String skuName;

    @ApiModelProperty(value = "多个销售属性值id逗号分隔")
    private String attrs;

    @ApiModelProperty(value = "sku图片")
    private String imgUrl;

    @ApiModelProperty(value = "售价，整数方式保存", required = true)
    @NotNull(message = "售价，整数方式保存不能为空")
    private BigDecimal priceFee;

    @ApiModelProperty(value = "市场价，整数方式保存", required = true)
    @NotNull(message = "市场价，整数方式保存不能为空")
    private BigDecimal marketPriceFee;

    @ApiModelProperty(value = "商品编码")
    private String partyCode;

    @ApiModelProperty(value = "商品条形码")
    private String modelId;

    @ApiModelProperty(value = "商品重量")
    private BigDecimal weight;

    @ApiModelProperty(value = "商品体积")
    private BigDecimal volume;

    @ApiModelProperty(value = "状态 1:enable, 0:disable, -1:deleted", required = true)
    @NotNull(message = "状态 1:enable, 0:disable, -1:deleted不能为空")
    private Integer status;

}
